import request from '@/utils/request'

// 获取用户信息
export const getUserApi = (params: object) =>
    request({
        url: 'user/user-info',
        method: 'get',
        params
    })

// 获取token
export const postUserApi = (data: object) =>
    request({
        url: 'user/user-token',
        method: 'post',
        data
    })